package br.com.guiav6.sisguia.enuns;

import br.com.guiav6.sisguia.utils.ReflectionUtil;

public enum Bloco {
	
	A("a", "A"),
	B("b", "B"),
	C("c", "C"),
	D("d", "D"),
	E("e", "E"),
	F("f", "F"),
	G("g", "G"),
	H("h", "H"),
	I("i", "I"),
	J("j", "J"),
	K("k", "K"),
	L("l", "L"),
	M("m", "M"),
	N("n", "N"),
	O("o", "O"),
	P("p", "P");	
	
	private String id;
	
	private String letra;
	
	public static Bloco getInstance(Integer id){
		try{
			return (Bloco) ReflectionUtil.getEnumInstance(values(), id);
		}catch (Exception e) {
			return null;
		}
	}

	private Bloco(String id, String letra) {
		this.id = id;
		this.letra = letra;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getLetra() {
		return letra;
	}

	public void setLetra(String letra) {
		this.letra = letra;
	}

}
